package com.anpy.bill.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import javax.persistence.ElementCollection;
import javax.persistence.Id;
import java.util.Date;
import java.util.List;

/**
 * @Author : anpengyu
 * @create 2024/8/25 16:04
 */
@Data
@TableName("T_MEMO_DETAIL")
public class MemoDetailEntity {

    @Id
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;
    @TableField(value = "cover_path")
    private String coverPath;
    private Integer shared;
    @TableField(value = "user_id")
    private Long userId;
    @TableField(value = "create_time")
    private Date createTime;
    @TableField(value = "update_time")
    private Date updateTime;
    @TableField(value = "title")
    private String title;
    @TableField(value = "content")
    private String content;
    @TableField(value = "type_id")
    private Integer typeId;
    @TableField(value = "memo_id")
    private Long memoId;
    @TableField(value = "img_num")
    private Integer imgNum;
    @ElementCollection
    @TableField(exist = false)
    private List<String> photoUrls;
    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }
}
